import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

import Viewer from "v-viewer";
import "viewerjs/dist/viewer.css";
Vue.use(Viewer);
Viewer.setDefaults({
  zIndex: 9999,
  inline: false, //启用lnline模式
  button: true, //显示右上角关闭按钮
  navbar: false, //显示缩略图导航
  title: false, //显示当前图片的标题
  toolbar: false, //显示工具栏
  tooltip: true, //显示缩放百分比
  movable: true, //显示可移动
  zoomable: true, //图片是否可缩放
  rotatable: true, //图片是否可旋转
  scalable: true, //图片是否可翻转
  transition: true, //使用css3过度
  fullscreen: false, //播放时是否全屏
  keyboard: true, //是否支持键盘
});

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import VueQuillEditor from "vue-quill-editor";
// 引入样式
import "quill/dist/quill.core.css";
import "quill/dist/quill.snow.css";
import "quill/dist/quill.bubble.css";
Vue.use(VueQuillEditor /* { 默认全局 } */);

//引入阿里ui图标库
import "./assets/iconfont.css";

//引入全局request插件
import RequestPlugin from "./utils/requestPlugin";

// 使用 request 插件
Vue.use(RequestPlugin);

Vue.use(ElementUI, { size: "small", zIndex: 3000 });

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
